package com.wh.hotel.service.impl;

import com.wh.hotel.dao.HotelTestDao;
import com.wh.hotel.model.HotelTest;
import com.wh.hotel.service.TestService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TestServiceImpl implements TestService {

    @Resource
    private HotelTestDao hotelTestDao;

    @Override
    public boolean insert(HotelTest hotelTest) {
        if (hotelTest == null) {
            return false;
        }
        return hotelTestDao.insert(hotelTest);
    }
}
